package com.yuntcm.group6.med_booking.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuntcm.group6.med_booking.entity.Patient;
import com.yuntcm.group6.med_booking.mapper.PatientMapper;
import com.yuntcm.group6.med_booking.service.PatientService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PatientServiceImpl extends ServiceImpl<PatientMapper, Patient> implements PatientService {

    @Override
    public List<Patient> listAllPatients() {
        return baseMapper.selectList(null);
    }
}